
package com.ksd1.notes.markdown.parser;

import com.ksd1.notes.markdown.Markdown;
import com.ksd1.notes.markdown.Markdown.MDParser;
import com.ksd1.notes.markdown.Markdown.MDWord;

public class UnOrderListParser extends MDParser {

    private static final char KEY = '-';

    @Override
    public MDWord parseLineFmt(String content) {
        if (content.charAt(0) != KEY) {
            return MDWord.NULL;
        }
        return new MDWord("", 1, Markdown.MD_FMT_UNORDER_LIST);
    }

    @Override
    public MDWord parseWordFmt(String content) {
        return MDWord.NULL;
    }

}
